package com.boot.dao;


import org.apache.ibatis.annotations.*;

import com.boot.models.User;

@Mapper
public interface UserDao {
    @Select("SELECT * FROM USER WHERE NAME = #{name}")
    User findByName(@Param("name") String name);
    
    @Insert("INSERT INTO USER(NAME, PASSWORD) VALUES(#{name}, #{password})")
    int insert(@Param("name") String name, @Param("password") String password);
}
